Skip to content

fix: detect ibus/fcitx5 via D-Bus instead of process name - #1862

Open
Pandapip1 wants to merge 2 commits into
opensteno:mainfrom
Pandapip1:ime-probing
Open

fix: detect ibus/fcitx5 via D-Bus instead of process name#1862
Pandapip1 wants to merge 2 commits into
opensteno:mainfrom
Pandapip1:ime-probing

Conversation

@Pandapip1

@Pandapip1 Pandapip1 commented Aug 6, 2026

Copy link
Copy Markdown

Summary of changes

On certain distributions, certain programs (such as the ibus or fcitx daemons) get wrapped. This causes the process name to be different and the check with the hardcoded name to fail.

This instead checks for the presence of the actual D-Bus APIs, which is the correct way of determining if the service is running or not.

Currently uses raw FFI to avoid pulling in any additional dependencies, LMK if you'd prefer I just bring in one of the python D-Bus libraries (which would simplify things a lot).

Pull Request Checklist

  • Changes have tests
  • News fragment added in news.d. See documentation for details

@Pandapip1
Pandapip1 force-pushed the ime-probing branch 4 times, most recently from 55d3dc2 to 459d0a3 Compare August 6, 2026 15:24
Pandapip1 added a commit to Pandapip1/plover that referenced this pull request Aug 6, 2026
@Pandapip1
Pandapip1 marked this pull request as ready for review August 6, 2026 23:29
Pandapip1 added a commit to Pandapip1/plover that referenced this pull request Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant